package com.cloud.dao;

import com.cloud.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface UserRepository extends JpaRepository<User,Integer> {
    public User findUserByNameAndPassword(String Name,String Password);
    public List<User> findUserByTeamId(Integer teamId);
    public List<User> findUsersByName(String userName);
    @Query(value = "select * from user where  team_id =?1",nativeQuery = true)
    public List<User> aUser(Integer id);
}
